import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import constant from '@/utils/constant.js';
import uView from "@/uni_modules/uview-ui";
import rolePopup from "@/components/role-popup/role-popup.vue"
import hyxTabbar from "@/components/hyx-tabbar/hyx-tabbar.vue"

import request from '@/utils/request.js'
Vue.use(uView)
Vue.prototype.$constant = constant
Vue.prototype.$request = request
Vue.component("role-popup", rolePopup)
Vue.component("hyx-tabbar", hyxTabbar)
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif